package com.zgm.zen.responsibilityChain.example2;

public class Women implements IWomen {
	/**
	 * 1 -- 未出嫁
	 * 2 -- 出嫁
	 * 3 -- 夫死
	 */
	
	private int type = 0;
	private String request = "";
	
	public Women(int type, String request) {
		this.type = type;
//		this.request = request;
		switch(this.type){
		case 1:
			this.request = "女儿的请求是：" + request;
		case 2: 
			this.request = "妻子的请求是：" + request;
		case 3:
			this.request = "母亲的请求是：" + request;
		}
	}

	@Override
	public String getRequest() {
		return this.request;
	}

	@Override
	public int getType() {
		return this.type;
	}

}

/*public class Women implements IWomen {
	*//**
	 * 1 -- 未出嫁
	 * 2 -- 出嫁
	 * 3 -- 夫死
	 *//*
	
	private int type = 0;
	private String request = "";
	
	public Women(int type, String request) {
		this.type = type;
		this.request = request;
	}

	@Override
	public String getRequest() {
		return this.request;
	}

	@Override
	public int getType() {
		return this.type;
	}

}*/
